package com.hlkj.baojin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author HULIN
 * @created with: baojin
 * @package com.hlkj.baojin.entity
 * @description:
 * @date 2019/1/30 09:02
 * @modified By:
 * @Copyright © 2018 HAILIANG Info. Tech Ltd. All rights reserved.
 */

@Document
@Getter
@Setter
@ApiModel
public class DutyLog {

    @Id
    private String id;

    /**
     * 日期
     */
    @ApiModelProperty(value = "日期")
    private Long time;

    /**
     * 值班人员姓名
     */
    @ApiModelProperty(value = "值班人员姓名")
    private String dutyName;

    /**
     * 值班开始时间
     */
    @ApiModelProperty(value = "值班开始时间")
    private Long timeStart;

    /**
     * 值班结束时间
     */
    @ApiModelProperty(value = "值班结束时间")
    private Long timeEnd;

    private Long createTime;

    public DutyLog(Long createTime) {
        this.createTime = createTime;
    }
}
